package com.iyunsir.common.controller;

import com.wf.captcha.utils.CaptchaUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller

public class CommonController {

    @GetMapping("/login")
    public String login(){
        return "login";
    }

    @GetMapping("/index")
    public String index(){
        return "index";
    }

    @GetMapping("/welcome")
    public String welcome(){
        return "welcome";
    }
    @GetMapping("/enter")
    public String enter(){
        return "enter/enter";
    }
    @GetMapping("/out")
    public String out(){
        return "out/out";
    }
    @GetMapping("/recommend")
    public String recommend(){
        return "recommend/recommend";
    }
    @GetMapping("/system")
    public String system(){
        return "system/system";
    }
    @GetMapping("/parts")
    public String parts(){
        return "parts/parts";
    }
    @GetMapping("/actvip")
    public String actvip(){
        return "actvip/actList";
    }
    @GetMapping("/stat")
    public String stat(){
        return "stat/stat";
    }
    @GetMapping("/after")
    public String after(){
        return "after/after";
    }
    @GetMapping("/assist")
    public String assist(){
        return "assist/assist";
    }
    @GetMapping("/stock")
    public String stock(){
        return "stock/stock";
    }
    @GetMapping("/man")
    public String man(){
        return "man/man";
    }
    @GetMapping("/reward")
    public String reward(){
        return "reward";
    }



        @RequestMapping("/captcha")
        public void captcha(HttpServletRequest request, HttpServletResponse response) throws Exception {
            CaptchaUtil.out(request, response);


    }
}
